import { TemplateRef } from "@angular/core";

export interface CustomFormConfig {
  header: string;
  width?: string;
  controlName?: string;
  defaultValue?: any;
  type: 'input' | 'date' | 'select' | 'number' | 'discount' | 'radio';
  validation: Array<any>;
  errorTip?: string;
  options?: Array<{ label: string, value: any; }>;
  controlMode?: 'readonly' | 'edit';
  hide?: boolean;
  placeholder?: string;
  allowClear?: boolean;
  showRequiredTip?: boolean;
  template?: TemplateRef<any> | null;
  maxLength?: string | number;
  max?: number;
  format?: (value: any) => any;
}
